package com.dream.inspect.modules.business.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.dream.inspect.common.utils.PageUtils;
import com.dream.inspect.common.utils.Query;

import com.dream.inspect.modules.business.dao.SuperviseAreaDao;
import com.dream.inspect.modules.business.entity.SuperviseAreaEntity;
import com.dream.inspect.modules.business.service.SuperviseAreaService;


@Service("superviseAreaService")
public class SuperviseAreaServiceImpl extends ServiceImpl<SuperviseAreaDao, SuperviseAreaEntity> implements SuperviseAreaService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<SuperviseAreaEntity> page = this.selectPage(
                new Query<SuperviseAreaEntity>(params).getPage(),
                new EntityWrapper<SuperviseAreaEntity>()
        );

        return new PageUtils(page);
    }

}
